MailPoet\Segments\WooCommerce A

Total Complexity 67
Dependencies 20
Dependents 8
Total lines 604
Lines of code 438
Logical lines of code 222
Comment lines 68
Methods 18
Properties 14

Methods 18

Method Rating Maintainability Complexity Lines of code
synchronizeRegisteredCustomer()
A
45 13 42
updateNames()
A
41 10 61
synchronizeGuestCustomer()
A
51 9 27
removeOrphanedSubscribers()
S
39 4 75
insertSubscribersFromOrders()
S
47 5 37
synchronizeCustomers()
S
58 3 16
ensureColumnCollation()
S
60 3 14
updateStatus()
S
53 2 25
insertSubscribers()
S
53 2 23
updateGlobalStatus()
S
51 1 32
insertSubscriberFromOrder()
S
66 3 8
shouldShowWooCommerceSegment()
S
67 3 8
shouldSubscribeToWooSegment()
S
71 3 5
needsCollationChange()
S
63 2 11
insertUsersToSegment()
S
59 1 15
unsubscribeUsersFromSegment()
S
60 1 14
__construct()
S
59 1 14
markRegisteredCustomers()
S
62 1 11